package com.chance.cc.crawler.prod.command.schedule.news.wangyi;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.wangyi.realtime.WYRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.wangyi.trace.WYAdTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.wangyi.trace.WYCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.wangyi.trace.WYTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-10 15:11:29
 * @email okprog@sina.com
 */
public class WYCommonCrawlerJobScheduler extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        publicCrawlerScheduleJob(WYRealtimeCrawlerSchedulerJob.crawlerScheduler());

        publicCrawlerScheduleJob(WYTraceCrawlerSchedulerJob.crawlerScheduler());

        publicCrawlerScheduleJob(WYCommentTraceCrawlerSchedulerJob.crawlerScheduler());

        publicCrawlerScheduleJob(WYAdTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_3);
    }
}
